﻿using System.Web.UI;
using Unknown.Example.Entity;

namespace Unknown.Example.Website.Support
{
    /// <summary>
    /// 默认页面抽象类
    /// </summary>
    public abstract class DefaultPage : Page
    {
        /// <summary>
        /// 根路径
        /// </summary>
        public string Root
        {
            get
            {
                return Share.Root;
            }
        }

        /// <summary>
        /// 根目录
        /// </summary>
        public string Directory
        {
            get
            {
                return Share.Directory;
            }
        }

        /// <summary>
        /// Dojo主题
        /// </summary>
        public string DojoTheme
        {
            get
            {
                return this.Session[Share.SessionDojoThemeKey] as string;
            }
        }

        /// <summary>
        /// Dojo资源
        /// </summary>
        public string DojoResource
        {
            get
            {
                return Share.DojoResource;
            }
        }

        /// <summary>
        /// 自定义资源
        /// </summary>
        public string CustomResource
        {
            get
            {
                return Share.CustomResource;
            }
        }
    }
}